
function injectCustomJs(jsPath){
	jsPath = jsPath || 'js/injected.js';
	var temp = document.createElement('script');
	temp.setAttribute('type', 'text/javascript');
	// 获得的地址类似：chrome-extension://ihcokhadfjfchaeagdoclpnjdiokfakg/js/inject.js
	temp.src = chrome.extension.getURL(jsPath);
	temp.onload = function(){
		// 放在页面不好看，执行完后移除掉
		this.parentNode.removeChild(this);
	};
	document.documentElement.appendChild(temp);
}
injectCustomJs();
injectCustomJs("js/jq3.6.js");
injectCustomJs("uiJS/mask.js");

let id=chrome.extension.getURL('');
let temp = document.createElement('script');
temp.setAttribute('type', 'text/javascript');
temp.innerText=`eval('window.extensionid="${id}"')`;
document.documentElement.appendChild(temp);
document.documentElement.removeChild(temp);

